Hi, I'm using Two-way sync mode in my Windows with S3Drive (1.9.1). The first time after set the synchronization settings from remote (Cloudflare R2) to local, there were no problems (all files in the cloud were downloaded to local). However, after I changed some files locally and synchronization was running, an error like this appeared.
Hi @Bryan,
Thanks for your report. It seems that default "max delete" safety check was triggered, which may indicate that sync operation would touch more than 50% of files: https://rclone.org/bisync/#max-delete
We will make this configurable in a next release within couple days.(edited)
This option is now available in our latest Windows release: https://github.com/s3drive/windows-app/releases/tag/1.9.2%2B1
When you edit existing sentry, you can change the: "Max delete" value from the default 50% to e.g 90% or even 100% (although is is somewhat risky).
Please let me know if this has resolved your issue. Thanks !
I would personally say 100% is somewhat unsafe, as in the case where there is a bug (e.g. some back-end experiencing a falure responds with 200 OK code with empty listing instead of 4xx or 5xx) which can be interpreted as no files, then all files would then be deleted on the other end.
Also if user accidentally deleted all contents (which is probably extremely rare case to handle two-way sync, that change would then propagate).
Referring to documentation: "This safety check is intended to block bisync from deleting all of the files on both filesystems due to a temporary network access issue, or if the user had inadvertently deleted the files on one side or the other."
Link: https://rclone.org/bisync/#max-delete
As long as your dataset grows, you may consider reducing 90% to lower value and only "tweak" it if you're performing some global operation.(edited)